Subset Logic Programs and Their Implementation

نویسندگان

  • Bharat Jayaraman
  • Kyonghee Moon
چکیده

This paper discusses the design and implementation of a set-oriented logic programming paradigm, called subset-logic programming. Subset-logic programs are built up of three kinds of program clauses: subset, equational, and relational clauses. Using these clauses, we can program solutions to a broad range of problems of interest in logic programming and deductive databases. In previous research, we developed the implementation of subset and equational program clauses. This paper substantially extends that work, and focuses on the more expressive paradigm of subset and relational clauses. This paradigm supports setof operations, transitive closures, monotonic aggregation as well as incremental and lazy enumera-tion of sets. Although the subset-logic paradigm diiers substantially from that of Prolog, we show that few additional changes are needed to the Warren Abstract Machine (WAM) to implement the paradigm and that these changes blend well with the overall machinery of the WAM. A central feature in the implementation of subset-logic programs is that of a monotonic memo-table, i.e., a memo-table whose entries can monotonically grow or shrink in an appropriate partial order. We present in stages the paradigm of subset-logic progams, showing the eeect of each feature on the implementation. The implementation has been completed, and we present performance gures to show the eeciency and costs of memoization. Our conclusion is that the monotonic memo-tables are a practical tool for implementing a set-oriented logic programming language. We also compare this system with other closely related systems, especially XSB and CORAL.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Implementation of Subset Logic

Subset-logic programs are built up of three kinds of program clauses: subset, equational, and relational clauses. Using these clauses, we can program solutions to a broad range of problems of interest in logic programming and deductive databases. In an earlier paper Jay92], we discussed the implementation of subset and equational program clauses. This paper substantially extends that work, and ...

متن کامل

Compilation of Subset-Logic Programs

Subset logic programming is a paradigm of programming with subset and equality assertions, and whose execution model is based on associativecommutative (a-c) matching and innermost reduction. SEL (Set Equational Language) is a language that has been proposed to illustrate this approach. Th.is thesis describes the design and implementation of a system that compiles SEL programs into an instructi...

متن کامل

Online Agent Logic Programming with oClingo

The online answer set solver oClingo offers a powerful new technique for uniting the speed of Answer Set Programming (ASP) with dynamic events. The price of this power is paid by increased constraints on the construction of a ‘safe’ program—one that satisfies an arcane modularity condition. We provide an alternative in the form of so-called Agent Logic Programs—a concise declarative language fo...

متن کامل

Types in Logic Programming

Types play an increasingly important role in logic programming, in language design as well as language implementation. We present various views of types, their connection, and their role within the logic programming paradigm. Among the basic views of types we find the so-called descriptive systems, where types describe properties of untyped logic programs, and prescriptive systems, where types ...

متن کامل

Sequentialization of Parallel Logic Programs with Mode Analysis

The family of concurrent logic programming languages based on Flat-Guarded Horn Clauses has proven to be a great asset to programmers seeking to quickly construct ee-cient programs for highly parallel shared-memory machines. If these languages are to be implemented eeciently for other architectures, however, language-speciic compile-time analysis techniques must be improved. This work describes...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • J. Log. Program.

دوره 42  شماره 

صفحات  -

تاریخ انتشار 2000